<?php $this->load->view("common/header") ?>
<body>

  <div id="page_wrapper">
<?php $this->load->view("common/speel") ?>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td ><?php $this->load->view("nav/main") ?></td>
      <td width="1265" valign="top" id="mainContent">
        <table width="600" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
          <div id="crum">
<?php echo $crum ?>
</div><br>
<form name="form1" method="post" action="">
  
  <table width="400" border="0" align="left" cellpadding="3" cellspacing="3">
                <tr>
                  <td colspan="2" class="tbl_header">Add a new user</td>
                  </tr>
                <tr>
                  <td colspan="2" class="tblBodyNoneHover"><span class="pageMsg"><?php echo $msg ?></span> </td>
                  </tr>
                <tr>
                  <td width="80" class="tbl_field_lable">First name</td>
                  <td width="300" class="tbl_field_input"><input name="firstname" type="text" id="firstname" size="25"></td>
                </tr>
                <tr>
                  <td class="tbl_field_lable">Last name</td>
                  <td class="tbl_field_input"><input name="lastname" type="text" id="lastname" size="25"></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td class="tbl_field_input">&nbsp;</td>
                </tr>
                <tr>
                  <td class="tbl_field_lable">User Type</td>
                  <td class="tbl_field_input"><select name="user_type" id="user_type">
                    <?php foreach($user_types as $ut) { ?>
                    <option value="<?php echo $ut['lu_value']?>"><?php echo $ut['lu_lable']?></option>
                    <?php } ?>
                  </select>  <select name="company" id="company" style="display:none">
                  <option value="0">Select a client</option>
                  <?php foreach ($clients as $client) { ?>
                  <option value="<?php echo ($client['id']) ?>"><?php echo ($client['company_name']) ?></option>
                  <?php } ?>
                </select> </td>
                </tr>
                <tr>
                  <td class="tbl_field_lable">Username</td>
                  <td class="tbl_field_input"><input name="username" type="text" id="username" size="25"></td>
                </tr>
                <tr>
                  <td class="tbl_field_lable">Password</td>
                  <td class="tbl_field_input"><input name="password" type="text" id="password" size="25"></td>
                </tr>
                <tr>
                  <td><input name="action" type="hidden" id="action" value="newuser"></td>
                  <td class="tbl_field_input"><input name="button" type="submit" class="tblBtn" id="button" value="Add New User"></td>
                </tr>
              </table>
           
        </form></td>
        </tr>
      </table></td>
    </tr>
</table>

<?php $this->load->view("common/footer") ?>
</div>
</body>
</html>
